/**
 * 
 */
package com.antilia.infomaresme.pages.details;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

import com.antilia.infomaresme.data.dataobjects.Item;
import com.antilia.infomaresme.pages.images.ImagesPanel;

/**
 * @author Ernesto
 *
 */
public class DetailsPanel extends Panel {

	private static final long serialVersionUID = 1L;

	/**
	 * @param id
	 * @param model
	 */
	public DetailsPanel(String id, IModel<Item> model) {
		super(id, model);
		Label text = new Label("text", model.getObject().getDescription());
		add(text);
		add(new ImagesPanel("images", model));
		//add(new Label("images", model.getObject().getDescription()));
	}

}
